import request from '@/utils/request'

export default {

  // 借款人列表展示
  getPageList(keyword, page) {
    return request({
      url: `/service/admin/borrower/list`,
      method: 'get',
      params: { keyword, page }
    })
  },

  // 借款人信息展示
  show(id) {
    return request({
      url: `/service/admin/borrower/show/${id}`,
      method: 'get'
    })
  },

  // 借款额度审核
  approval(borrowerApproval) {
    return request({
      url: '/service/admin/borrower/approval',
      method: 'post',
      data: borrowerApproval
    })
  }
}
